<div class="slide-dialog-header">
    <h2>{{title}}</h2>
    <div class="slide-dialog-toolbar">
        <ul>
            <li><span class="ui-btn slide-dialog-close" ng-click="close(false)"><i class="fa fa-remove"></i></span></li>
        </ul>
    </div>
</div>
<div class="slide-dialog-body">
    <div class="data-section">
        <form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
            <div class="data-panel-body">
                <div class="data-form">
                    <dl>
                        <dt><span class="x-star">*</span>分类名称：</dt>
                        <dd>
                            <input type="text" name="name" ng-model="data.name" class="x-ipt" placeholder="请输入名称" remote="{name: 'settings_isExistName', params: {id: data.id}}" required />
                            <div class="x-error" ng-if="interacted(form.name)" ng-messages="form.name.$error">
                                <span ng-message="required">分类名称不能为空</span>
                                <span ng-message="remote">分类名称已存在</span>
                            </div>
                        </dd>
                    </dl>
                </div>
            </div>
            <div class="data-panel-footer">
                <button class="dialog-button cancel-button" type="button" ng-click="close(false)">取消</button><button class="dialog-button" type="submit" ng-disabled="formDisabled">提交</button>
            </div>
        </form>
    </div>
</div>